/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estg.dae.projecto.bank.impl;

import estg.dae.projecto.bank.IBank;
import java.io.Serializable;

/**
 *
 * @author Marco
 */
public class BankTO implements IBank, Serializable {
    private String code;
    private String name;
    private String address;
    private String phone;
    private String responsibleName;
    private String responsibleEmail;
    private String shortName;
    private String hostName;
    private int hostPort;

    public String getAddress() {
        return address;
    }

    public String getCode() {
        return code;
    }

    public String getHostName() {
        return hostName;
    }

    public String getName() {
        return name;
    }

    public String getPhone() {
        return phone;
    }

    public String getResponsibleEmail() {
        return responsibleEmail;
    }

    public String getResponsibleName() {
        return responsibleName;
    }

    public int getHostPort() {
        return hostPort;
    }

    public String getShortName() {
        return shortName;
    }

    public BankTO() {

    }

    public BankTO(IBank bank) {
        code = bank.getCode();
        name = bank.getName();
        address = bank.getAddress();
        phone = bank.getPhone();
        responsibleName = bank.getResponsibleName();
        responsibleEmail = bank.getResponsibleEmail();
        shortName = bank.getShortName();
        hostName = bank.getHostName();
        hostPort = bank.getHostPort();
    }
}
